package edu.mju.eduorder.client;

import edu.mju.commonutils.orderVo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: wyp
 * @Date: 2020/10/5 22:35
 */
@Component
@FeignClient("service-edu")
public interface EduClient {
    /**
     * 生成订单
     * 根据课程id查询课程信息
     *
     */
    @PostMapping("/eduservice/front/courseFront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
